<?php
if($html->getContent('type')=='news')
{
    $otherNews  = OtherNews($html->getContent('iParentId'),$html->getId());
}
if($html->countUrl>1)
{
    $listnews   = ListAllNews($html->getId());
}
else
{
    $listnews   = ListAllNews();
}

$listcat        = ListCategoryByParentId(getIdCatByType('news'));


if($ajax==true)
{
    echo $listnews;
    exit;
}

?>